package com.dragon.mmochat.model.enumType;

public enum MmochatHotType {
	火爆(2), 一般(1), 空闲(0);

	int value;

	MmochatHotType(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public static MmochatHotType get(int value) {
		for (MmochatHotType hot : MmochatHotType.values()) {
			if (hot.getValue() == value) {
				return hot;
			}
		}
		return null;
	}

}
